package com.example.demo.services;

import com.example.demo.entity.article;
import com.github.pagehelper.PageInfo;

import java.time.LocalDateTime;
import java.util.List;

public interface articleService {

    public List<article> selectall();

    public Integer addArticle(String name, String title, String content, String userName, String userId, LocalDateTime dateTime, String img);

    public Integer updateArticle(String content,Integer id);

    public article selectId(Integer id);

    public PageInfo<article> selectname(String name,Integer num);

}
